<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    div {
      border: solid;
      box-sizing: content-box;

    }

    .continer {
      width: 800px;
      font-size: 40px;
      display: flex;
      /* flex-direction: row; */
      /* flex-wrap: wrap; */
      /* flex-wrap: wrap-reverse; */

      flex-flow: row-reverse wrap-reverse;
    }

    .continer .item {
      width: 200px;
    }
  </style>
</head>

<body>
  <div class="continer">
    <div class="item">1</div>
    <div class="item">2</div>
    <div class="item">3</div>
    <div class="item">4</div>
    <div class="item">5</div>
    <div class="item">6</div>
    <div class="item">7</div>
    <div class="item">8</div>
  </div>
</body>

</html>